<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>工会基本信息</title>
<link rel="stylesheet" type="text/css"
	href="../../css/themes/default/easyui.css" />
<link rel="stylesheet" type="text/css" href="../../css/themes/icon.css" />
<script type="text/javascript" src="../../js/jquery-1.7.2.js"></script>
<script type="text/javascript" src="../../js/jquery.form.js"></script>
<script type="text/javascript"
	src="../../js/easyui/jquery.easyui.min.js"></script>
<script type="text/javascript" src="../../js/ListData.js"></script>
<script type="text/javascript">
	$.fn.datebox.defaults.formatter = function(date) {
		var y = date.getFullYear();
		var m = date.getMonth() + 1;
		m = m < 10 ? "0" + m : m;
		var d = date.getDate();
		d = d < 10 ? "0" + m : m;
		return y + '-' + m + '-' + d;
	}
	function loadData(data) {
		$('#org_info').form("load", data);
	}
	function alterAction(url) {
		$("#org_info").attr("action", url);
	}
	function clearForm() {
		$('#org_info').clearForm();
	}
	$(function() {
		$('#org_info').submit(function() {
			$(this).ajaxSubmit({
				clearForm : true,
				success : function() {
					window.top.buildTree();
					window.parent.refresh();
				}
			});
			return false;
		});
	})
	function readOnly() {
		$($("input")).each(function() {
			$(this).attr("disabled", "disabled");
		});
		$($("select")).each(function() {
			$(this).attr("disabled", "disabled");
		});
		$($("textarea")).each(function() {
			$(this).attr("disabled", "disabled");
		});
		$($("button")).each(function() {
			$(this).hide();
		});
	}
</script>
<style type="text/css">
body {
	margin: 0px;
	padding: 0px;
	width: 100%;
	height: 100%;
}

form {
	font-size: 13px;
	font-weight: 400;
}
</style>
</head>
<body style="margin: 0">
	<form id="org_info" name="org_info" method="post"
		action="../../org/add">
		<table>
			<tr>
				<td nowrap="nowrap" width="100" align="right">上级机构：</td>
				<td nowrap="nowrap" width="200" align="left" colspan="3"><input
					id="parentid" name="parentid" class="easyui-combotree"
					data-options="multiple:false,url:'../../view/orgcombo'"
					style="width: 400px;"><input name="id" id="id"
					type="hidden" /></td>
			</tr>
			<tr>
				<td nowrap="nowrap" width="100" align="right">工会机构编码：</td>
				<td nowrap="nowrap" width="200" align="left"><input
					name="unionCode" id="unionCode" /></td>
				<td nowrap="nowrap" width="100" align="right">工会级别：</td>
				<td nowrap="nowrap" width="200" align="left"><input
					name="orgGrade" id="orgGrade" class="easyui-combobox"
					style="width: 170px;"
					data-options="
					data:list_org_grade,
					valueField: 'value',
					textField: 'text'
			" /></td>
			</tr>
			<tr>
				<td nowrap="nowrap" width="100" align="right">工会机构名称：</td>
				<td nowrap="nowrap" width="200" align="left" colspan="3"><input
					name="unionName" id="unionName" size="50" /></td>
			</tr>
			<tr>
				<td nowrap="nowrap" width="100" align="right">所在省：</td>
				<td nowrap="nowrap" width="200" align="left"><input
					name="province" id="province" class="easyui-combobox"
					style="width: 170px;"
					data-options="
					data:list_province,
					valueField: 'value',
					textField: 'text'
			" /></td>
				<td nowrap="nowrap" width="100" align="right">所在市：</td>
				<td nowrap="nowrap" width="200" align="left"><input name="city"
					id="city" class="easyui-combobox" style="width: 170px;"
					data-options="
					data:list_city,
					valueField: 'value',
					textField: 'text'
			" /></td>
			</tr>
			<tr>
				<td nowrap="nowrap" width="100" align="right">工会成立时间：</td>
				<td nowrap="nowrap" width="200" align="left"><input
					name="setupDate" id="setupDate" type="text" class="easyui-datebox" /></td>
				<td nowrap="nowrap" width="100" align="right"></td>
				<td nowrap="nowrap" width="200" align="left"></td>
			</tr>
			<tr>
				<td nowrap="nowrap" width="100" align="right">办公地点：</td>
				<td nowrap="nowrap" width="200" align="left"><input
					name="officeSite" id="officeSite" /></td>
				<td nowrap="nowrap" width="100" align="right">办公电话：</td>
				<td nowrap="nowrap" width="200" align="left"><input name="tel"
					id="tel" /></td>
			</tr>
			<tr>
				<td nowrap="nowrap" width="100" align="right">传真：</td>
				<td nowrap="nowrap" width="200" align="left"><input name="fax"
					id="fax" /></td>
				<td nowrap="nowrap" width="100" align="right">邮箱：</td>
				<td nowrap="nowrap" width="200" align="left"><input
					name="email" id="email" /></td>
			</tr>
			<tr>
				<td nowrap="nowrap" width="100" align="right">备注：</td>
				<td nowrap="nowrap" colspan="3" align="left"><textarea
						name="remark" id="remark" cols="50" rows="1"></textarea></td>
			</tr>
			<tr>
				<td colspan="4" align="center">
					<button type="submit">提交</button>
				</td>
			</tr>
		</table>
	</form>
</body>
</html>